package com.hhl.flower.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hhl.flower.pojo.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
* @author Liubuzhu
* @description 针对表【user】的数据库操作Mapper
* @createDate 2024-05-21 18:43:49
* @Entity com.hhl.flower.pojo.entity.User
*/
@Mapper
public interface UserMapper extends BaseMapper<User> {

	/**
	 * 账号/手机号/邮箱查询
	 * @param username
	 * @return
	 */
	@Select("select * from user where username = #{username} or phone = #{username} or email = #{username}")
	User getByUsername(String username);
}




